import 'server-only'; import type { Locale } from '@/config/constants'; const locales = { az: () => import('../../locales/az.json').then((m) => m.default), en: () => import('../../locales/en.json').then((m) => m.default), }; export const getDictionary = async (locale: Locale) => locales[locale]?.() ?? locales.az();